<template>
  <div>
    <NuxtWelcome />
    <span class="text-red-500">{{ route.query }}</span>
    <span class="text-red-500">plugin - {{ $myPlugin("haha") }}</span>
    <a-button type="primary" @click="info">Display normal message</a-button>

  </div>
</template>

<script setup lang="ts">
let route = useRoute()
// 要检查值
if (route.query.data) {
  console.log(route.query.data)
  let data = route.query.data
  JSON.parse(data)
  console.log(JSON.parse(data).id)
}
// import { message } from 'ant-design-vue';
const {$message}= useNuxtApp();
const info = () => {
  $message.info('This is a normal message');
};
</script>

<style scoped></style>